var ruleRepository = (function() {
    var getAll = function () {
        var allRule = null;
        $.ajax({
            url: 'api/rules/get',
            async: false,
            dataType: 'json',
            success: function (data) {
                allRule = data;
            }
        });

        return allRule;
    };

    return { getAll: getAll};
})();